package com.yxy.model;



import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_reimbursement_detail",schema = "")
public class TableReimbursementDetail {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //关联父表id
  @Column(name = "reimburs_id")
  private Long reimbursId;

  //报销明细金额
  @Column(name = "money")
  private BigDecimal money;

  //报销人
  @Column(name = "user_name")
  private String userName;

  //报销人员工号
  @Column(name = "user_code")
  private String userCode;

  //报销人所属部门
  @Column(name = "department_name")
  private String departmentName;

  //报销单据文件地址
  @Column(name = "file_url")
  private String fileUrl;

  //报销类型 1.车旅 2.酒店住宿
  @Column(name = "type")
  private String type;

  //报销类型名称
  @Column(name = "type_name")
  private String typeName;

  //报销描述
  @Column(name = "type_text")
  private String typeText;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "update_date")
  private Date updateDate;

  //null
  @Column(name = "update_user_id")
  private Long updateUserId;

  //null
  @Column(name = "update_user_name")
  private String updateUserName;

  //null
  @Column(name = "tenant_id")
  private Long tenantId;

  //审核状态  1. 通过 2 .不通过
  @Column(name = "status")
  private Long status;


}
